<%@page import="com.opensymphony.xwork2.ActionContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<%
	String Action_Name = new String();
	String Submit_or_Modify = new String();
%>

<s:if test="null == goodsInfo">
	<title>添加商品信息</title>
	<%Action_Name = "../Addgoods"; %>
	<%Submit_or_Modify = "添加"; %>
</s:if>
<s:else>
	<title>修改商品信息</title>
	<%Action_Name = "Modifygoods"; %>
	<%Submit_or_Modify = "修改"; %>
</s:else>

</head>
<body>

<form action="<%=Action_Name %>" method="post">
	
	
	<input type="hidden" name="goodsInfo.adminId" value="<%=session.getAttribute("AdminID") %>" >
	商品名称：<input type="text" id="Name" name="goodsInfo.goodsName" value="${goodsInfo.goodsName }" required="required"> <br>
	尺寸：<input type="text" id="size" name="goodsInfo.size" value="${goodsInfo.size }" required="required"> <br>
	种类：<!-- <input type="text" id="kind" name="goodsInfo.kind" value="${goodsInfo.kind }" required="required"> <br> -->
	<select name="goodsInfo.kind">
		<option value="生活用品">生活用品</option>
		<option value="家私摆设">家私摆设</option>
		<option value="生鲜蔬果">生鲜蔬果</option>
		<option value="服装饰品">服装饰品</option>
	</select>
	<br>
	简介：<input type="text" id="intro" name="goodsInfo.introduce" value="${goodsInfo.introduce }" required="required"> <br>
	库存：<input type="text" id="stock" name="goodsInfo.stock" value="${goodsInfo.stock }" required="required"> <br>
	状态：<input type="text" id="state" name="goodsInfo.state" value="${goodsInfo.state }" required="required"> <br>
	
	<input type="submit" value="<%=Submit_or_Modify %>">
	<input type="reset" value="取消">

</form>

</body>
</html>